package com.ruoyi.student.service.impl;

import java.util.List;

import com.ruoyi.student.mapper.StudentAttentionLogMapper;
import com.ruoyi.student.service.IStudentAttentionLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.domain.StudentAttentionLog;

/**
 * 重点关注Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-26
 */
@Service
public class StudentAttentionLogServiceImpl implements IStudentAttentionLogService
{
    @Autowired
    private StudentAttentionLogMapper studentAttentionLogMapper;

    /**
     * 查询重点关注
     * 
     * @param id 重点关注主键
     * @return 重点关注
     */
    @Override
    public StudentAttentionLog selectStudentAttentionLogById(Long id)
    {
        return studentAttentionLogMapper.selectStudentAttentionLogById(id);
    }

    /**
     * 查询重点关注列表
     * 
     * @param studentAttentionLog 重点关注
     * @return 重点关注
     */
    @Override
    public List<StudentAttentionLog> selectStudentAttentionLogList(StudentAttentionLog studentAttentionLog)
    {
        return studentAttentionLogMapper.selectStudentAttentionLogList(studentAttentionLog);
    }

    /**
     * 新增重点关注
     * 
     * @param studentAttentionLog 重点关注
     * @return 结果
     */
    @Override
    public int insertStudentAttentionLog(StudentAttentionLog studentAttentionLog)
    {
        return studentAttentionLogMapper.insertStudentAttentionLog(studentAttentionLog);
    }

    /**
     * 修改重点关注
     * 
     * @param studentAttentionLog 重点关注
     * @return 结果
     */
    @Override
    public int updateStudentAttentionLog(StudentAttentionLog studentAttentionLog)
    {
        return studentAttentionLogMapper.updateStudentAttentionLog(studentAttentionLog);
    }

    /**
     * 批量删除重点关注
     * 
     * @param ids 需要删除的重点关注主键
     * @return 结果
     */
    @Override
    public int deleteStudentAttentionLogByIds(Long[] ids)
    {
        return studentAttentionLogMapper.deleteStudentAttentionLogByIds(ids);
    }

    /**
     * 删除重点关注信息
     * 
     * @param id 重点关注主键
     * @return 结果
     */
    @Override
    public int deleteStudentAttentionLogById(Long id)
    {
        return studentAttentionLogMapper.deleteStudentAttentionLogById(id);
    }
}
